package com.example.myapplication2;


import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;


public class IndexActivity extends AppCompatActivity implements CallBacks{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_index);
    }

    @Override
    public void onItemSelected(int position) {
        Intent intent;
        switch (position) {
            case 0:
                intent = new Intent(this, ItemActivityy.class);
                startActivity(intent);
            case 01:
                intent = new Intent(this, ItemActivityy.class);
                startActivity(intent);
            case 02:
                intent = new Intent(this, ItemActivityy.class);
                startActivity(intent);
            case 03:
                intent = new Intent(this, ItemActivityy.class);
                startActivity(intent);
        }
        //  return super.onOptionsItemSelected(item);
    }
}

